#!/usr/bin/env python
# -*- coding:utf-8 -*-
# -----------------
#  Authur: 王荣雯
#　Create date: '' ''
# -----------------
import maya.cmds as cmds
def pose_date():
    ctrls = cmds.ls(sl=1)
    attrs = []
    values = []
    for ctrl in ctrls:
        attr_list = cmds.listAttr(ctrl, k=1)
        for attr in attr_list:
            if cmds.keyframe(ctrl+'.'+attr,q=1):
                attrs.append(attr)
                values.append(cmds.getAttr(ctrl+'.'+attr))

    cmds.keyframe("pCube1.translateX",q=1,tc=1)
    attr_value = {}.fromkeys(attrs,values)
    ctrl_attr_value = {}.fromkeys(ctrls,attr_value)
    return ctrl_attr_value